package db

import (
	"context"
	"github.com/go-redis/redis/v8"
	"server/src/global"
)

func InitRedis() {
	m := global.GVL_CFG.Redis
	global.GVL_REDIS = &global.Redis{
		Conn: redis.NewClient(m.Dsn()),
		Ctx:  context.Background(),
	}
}
